package com.myhome.money.spring.lifecycle;

import org.springframework.beans.factory.BeanNameAware;

public class Student implements BeanNameAware {

    private String name;

    private String stuNo;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    @Override
    public void setBeanName(String s) {
        System.out.println("设置beanName:" + s);
    }
}
